﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElementumForever.Interfaces;
using Microsoft.Xna.Framework;

namespace ElementumForever.Editer
{
    class ScenePropertyProxy : EntityPropertyProxy, ISceneProperty
    {
        public ScenePropertyProxy():base() { }

        public ScenePropertyProxy(BaseScene entity) : base((BaseEntity)entity)
        {
            CenterX = entity.CenterX;
            CenterY = entity.CenterY;
            GravityX = entity.GravityX;
            GravityY = entity.GravityY;
            HasPhysics = entity.HasPhysics;
            Zoom = entity.Zoom;
        }

        public Vector2 Center
        {
            get { return new Vector2(CenterX, CenterY); }
            set { CenterX = value.X; CenterY = value.Y; }
        }

        public float CenterX
        {
            get;
            set;
        }

        public float CenterY
        {
            get;
            set;
        }

        public float GravityX
        {
            get;
            set;
        }

        public float GravityY
        {
            get;
            set;
        }

        public bool HasPhysics
        {
            get;
            set;
        }

        public float Zoom
        {
            get;
            set;
        }
    }
}
